﻿namespace WMS6.Web.OutboundService2Ref
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, DataContract(Name="LoadHeaderInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class LoadHeaderInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private DateTime BeginLoadTimeField;
        [OptionalField]
        private string CarrierAddressField;
        [OptionalField]
        private string CarrierCityField;
        [OptionalField]
        private string CarrierContactField;
        [OptionalField]
        private string CarrierCountryField;
        [OptionalField]
        private string CarrierEmailField;
        [OptionalField]
        private string CarrierFaxField;
        [OptionalField]
        private string CarrierIDField;
        [OptionalField]
        private string CarrierNameField;
        [OptionalField]
        private string CarrierPhoneField;
        [OptionalField]
        private string CarrierProvField;
        [OptionalField]
        private string CarrierRefField;
        [OptionalField]
        private string CarrierZipField;
        [OptionalField]
        private double CostField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private DateTime DepartureTimeField;
        [OptionalField]
        private string DoorField;
        [OptionalField]
        private string DriverNameField;
        [OptionalField]
        private DateTime EndLoadTimeField;
        [OptionalField]
        private double ExpectedCubeField;
        [OptionalField]
        private decimal ExpectedUnitsField;
        [OptionalField]
        private double ExpectedWeightField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string ExternalIDField;
        [OptionalField]
        private string LoadByField;
        [OptionalField]
        private List<LoadDetailInfo> LoadDetailInfosField;
        [OptionalField]
        private string LoadIDField;
        [OptionalField]
        private List<LoadPickDetailInfo> LoadPickDetailInfosField;
        [OptionalField]
        private string LoadSequenceField;
        [OptionalField]
        private string RouteField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private double TotalCubeField;
        [OptionalField]
        private decimal TotalUnitsField;
        [OptionalField]
        private double TotalWeightField;
        [OptionalField]
        private string TrailerNumberField;
        [OptionalField]
        private string TrailerOwnerField;
        [OptionalField]
        private string Udf10Field;
        [OptionalField]
        private string Udf1Field;
        [OptionalField]
        private string Udf2Field;
        [OptionalField]
        private string Udf3Field;
        [OptionalField]
        private string Udf4Field;
        [OptionalField]
        private string Udf5Field;
        [OptionalField]
        private string Udf6Field;
        [OptionalField]
        private string Udf7Field;
        [OptionalField]
        private string Udf8Field;
        [OptionalField]
        private string Udf9Field;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private double ValueField;
        [OptionalField]
        private string VehicleNumberField;
        [OptionalField]
        private string VehicleTypeField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public DateTime BeginLoadTime
        {
            get
            {
                return this.BeginLoadTimeField;
            }
            set
            {
                if (!this.BeginLoadTimeField.Equals(value))
                {
                    this.BeginLoadTimeField = value;
                    this.RaisePropertyChanged("BeginLoadTime");
                }
            }
        }

        [DataMember]
        public string CarrierAddress
        {
            get
            {
                return this.CarrierAddressField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierAddressField, value))
                {
                    this.CarrierAddressField = value;
                    this.RaisePropertyChanged("CarrierAddress");
                }
            }
        }

        [DataMember]
        public string CarrierCity
        {
            get
            {
                return this.CarrierCityField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierCityField, value))
                {
                    this.CarrierCityField = value;
                    this.RaisePropertyChanged("CarrierCity");
                }
            }
        }

        [DataMember]
        public string CarrierContact
        {
            get
            {
                return this.CarrierContactField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierContactField, value))
                {
                    this.CarrierContactField = value;
                    this.RaisePropertyChanged("CarrierContact");
                }
            }
        }

        [DataMember]
        public string CarrierCountry
        {
            get
            {
                return this.CarrierCountryField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierCountryField, value))
                {
                    this.CarrierCountryField = value;
                    this.RaisePropertyChanged("CarrierCountry");
                }
            }
        }

        [DataMember]
        public string CarrierEmail
        {
            get
            {
                return this.CarrierEmailField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierEmailField, value))
                {
                    this.CarrierEmailField = value;
                    this.RaisePropertyChanged("CarrierEmail");
                }
            }
        }

        [DataMember]
        public string CarrierFax
        {
            get
            {
                return this.CarrierFaxField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierFaxField, value))
                {
                    this.CarrierFaxField = value;
                    this.RaisePropertyChanged("CarrierFax");
                }
            }
        }

        [DataMember]
        public string CarrierID
        {
            get
            {
                return this.CarrierIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierIDField, value))
                {
                    this.CarrierIDField = value;
                    this.RaisePropertyChanged("CarrierID");
                }
            }
        }

        [DataMember]
        public string CarrierName
        {
            get
            {
                return this.CarrierNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierNameField, value))
                {
                    this.CarrierNameField = value;
                    this.RaisePropertyChanged("CarrierName");
                }
            }
        }

        [DataMember]
        public string CarrierPhone
        {
            get
            {
                return this.CarrierPhoneField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierPhoneField, value))
                {
                    this.CarrierPhoneField = value;
                    this.RaisePropertyChanged("CarrierPhone");
                }
            }
        }

        [DataMember]
        public string CarrierProv
        {
            get
            {
                return this.CarrierProvField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierProvField, value))
                {
                    this.CarrierProvField = value;
                    this.RaisePropertyChanged("CarrierProv");
                }
            }
        }

        [DataMember]
        public string CarrierRef
        {
            get
            {
                return this.CarrierRefField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierRefField, value))
                {
                    this.CarrierRefField = value;
                    this.RaisePropertyChanged("CarrierRef");
                }
            }
        }

        [DataMember]
        public string CarrierZip
        {
            get
            {
                return this.CarrierZipField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierZipField, value))
                {
                    this.CarrierZipField = value;
                    this.RaisePropertyChanged("CarrierZip");
                }
            }
        }

        [DataMember]
        public double Cost
        {
            get
            {
                return this.CostField;
            }
            set
            {
                if (!this.CostField.Equals(value))
                {
                    this.CostField = value;
                    this.RaisePropertyChanged("Cost");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public DateTime DepartureTime
        {
            get
            {
                return this.DepartureTimeField;
            }
            set
            {
                if (!this.DepartureTimeField.Equals(value))
                {
                    this.DepartureTimeField = value;
                    this.RaisePropertyChanged("DepartureTime");
                }
            }
        }

        [DataMember]
        public string Door
        {
            get
            {
                return this.DoorField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DoorField, value))
                {
                    this.DoorField = value;
                    this.RaisePropertyChanged("Door");
                }
            }
        }

        [DataMember]
        public string DriverName
        {
            get
            {
                return this.DriverNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DriverNameField, value))
                {
                    this.DriverNameField = value;
                    this.RaisePropertyChanged("DriverName");
                }
            }
        }

        [DataMember]
        public DateTime EndLoadTime
        {
            get
            {
                return this.EndLoadTimeField;
            }
            set
            {
                if (!this.EndLoadTimeField.Equals(value))
                {
                    this.EndLoadTimeField = value;
                    this.RaisePropertyChanged("EndLoadTime");
                }
            }
        }

        [DataMember]
        public double ExpectedCube
        {
            get
            {
                return this.ExpectedCubeField;
            }
            set
            {
                if (!this.ExpectedCubeField.Equals(value))
                {
                    this.ExpectedCubeField = value;
                    this.RaisePropertyChanged("ExpectedCube");
                }
            }
        }

        [DataMember]
        public decimal ExpectedUnits
        {
            get
            {
                return this.ExpectedUnitsField;
            }
            set
            {
                if (!this.ExpectedUnitsField.Equals(value))
                {
                    this.ExpectedUnitsField = value;
                    this.RaisePropertyChanged("ExpectedUnits");
                }
            }
        }

        [DataMember]
        public double ExpectedWeight
        {
            get
            {
                return this.ExpectedWeightField;
            }
            set
            {
                if (!this.ExpectedWeightField.Equals(value))
                {
                    this.ExpectedWeightField = value;
                    this.RaisePropertyChanged("ExpectedWeight");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string ExternalID
        {
            get
            {
                return this.ExternalIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternalIDField, value))
                {
                    this.ExternalIDField = value;
                    this.RaisePropertyChanged("ExternalID");
                }
            }
        }

        [DataMember]
        public string LoadBy
        {
            get
            {
                return this.LoadByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoadByField, value))
                {
                    this.LoadByField = value;
                    this.RaisePropertyChanged("LoadBy");
                }
            }
        }

        [DataMember]
        public List<LoadDetailInfo> LoadDetailInfos
        {
            get
            {
                return this.LoadDetailInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoadDetailInfosField, value))
                {
                    this.LoadDetailInfosField = value;
                    this.RaisePropertyChanged("LoadDetailInfos");
                }
            }
        }

        [DataMember]
        public string LoadID
        {
            get
            {
                return this.LoadIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoadIDField, value))
                {
                    this.LoadIDField = value;
                    this.RaisePropertyChanged("LoadID");
                }
            }
        }

        [DataMember]
        public List<LoadPickDetailInfo> LoadPickDetailInfos
        {
            get
            {
                return this.LoadPickDetailInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoadPickDetailInfosField, value))
                {
                    this.LoadPickDetailInfosField = value;
                    this.RaisePropertyChanged("LoadPickDetailInfos");
                }
            }
        }

        [DataMember]
        public string LoadSequence
        {
            get
            {
                return this.LoadSequenceField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoadSequenceField, value))
                {
                    this.LoadSequenceField = value;
                    this.RaisePropertyChanged("LoadSequence");
                }
            }
        }

        [DataMember]
        public string Route
        {
            get
            {
                return this.RouteField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RouteField, value))
                {
                    this.RouteField = value;
                    this.RaisePropertyChanged("Route");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public double TotalCube
        {
            get
            {
                return this.TotalCubeField;
            }
            set
            {
                if (!this.TotalCubeField.Equals(value))
                {
                    this.TotalCubeField = value;
                    this.RaisePropertyChanged("TotalCube");
                }
            }
        }

        [DataMember]
        public decimal TotalUnits
        {
            get
            {
                return this.TotalUnitsField;
            }
            set
            {
                if (!this.TotalUnitsField.Equals(value))
                {
                    this.TotalUnitsField = value;
                    this.RaisePropertyChanged("TotalUnits");
                }
            }
        }

        [DataMember]
        public double TotalWeight
        {
            get
            {
                return this.TotalWeightField;
            }
            set
            {
                if (!this.TotalWeightField.Equals(value))
                {
                    this.TotalWeightField = value;
                    this.RaisePropertyChanged("TotalWeight");
                }
            }
        }

        [DataMember]
        public string TrailerNumber
        {
            get
            {
                return this.TrailerNumberField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TrailerNumberField, value))
                {
                    this.TrailerNumberField = value;
                    this.RaisePropertyChanged("TrailerNumber");
                }
            }
        }

        [DataMember]
        public string TrailerOwner
        {
            get
            {
                return this.TrailerOwnerField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TrailerOwnerField, value))
                {
                    this.TrailerOwnerField = value;
                    this.RaisePropertyChanged("TrailerOwner");
                }
            }
        }

        [DataMember]
        public string Udf1
        {
            get
            {
                return this.Udf1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf1Field, value))
                {
                    this.Udf1Field = value;
                    this.RaisePropertyChanged("Udf1");
                }
            }
        }

        [DataMember]
        public string Udf10
        {
            get
            {
                return this.Udf10Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf10Field, value))
                {
                    this.Udf10Field = value;
                    this.RaisePropertyChanged("Udf10");
                }
            }
        }

        [DataMember]
        public string Udf2
        {
            get
            {
                return this.Udf2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf2Field, value))
                {
                    this.Udf2Field = value;
                    this.RaisePropertyChanged("Udf2");
                }
            }
        }

        [DataMember]
        public string Udf3
        {
            get
            {
                return this.Udf3Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf3Field, value))
                {
                    this.Udf3Field = value;
                    this.RaisePropertyChanged("Udf3");
                }
            }
        }

        [DataMember]
        public string Udf4
        {
            get
            {
                return this.Udf4Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf4Field, value))
                {
                    this.Udf4Field = value;
                    this.RaisePropertyChanged("Udf4");
                }
            }
        }

        [DataMember]
        public string Udf5
        {
            get
            {
                return this.Udf5Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf5Field, value))
                {
                    this.Udf5Field = value;
                    this.RaisePropertyChanged("Udf5");
                }
            }
        }

        [DataMember]
        public string Udf6
        {
            get
            {
                return this.Udf6Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf6Field, value))
                {
                    this.Udf6Field = value;
                    this.RaisePropertyChanged("Udf6");
                }
            }
        }

        [DataMember]
        public string Udf7
        {
            get
            {
                return this.Udf7Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf7Field, value))
                {
                    this.Udf7Field = value;
                    this.RaisePropertyChanged("Udf7");
                }
            }
        }

        [DataMember]
        public string Udf8
        {
            get
            {
                return this.Udf8Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf8Field, value))
                {
                    this.Udf8Field = value;
                    this.RaisePropertyChanged("Udf8");
                }
            }
        }

        [DataMember]
        public string Udf9
        {
            get
            {
                return this.Udf9Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf9Field, value))
                {
                    this.Udf9Field = value;
                    this.RaisePropertyChanged("Udf9");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public double Value
        {
            get
            {
                return this.ValueField;
            }
            set
            {
                if (!this.ValueField.Equals(value))
                {
                    this.ValueField = value;
                    this.RaisePropertyChanged("Value");
                }
            }
        }

        [DataMember]
        public string VehicleNumber
        {
            get
            {
                return this.VehicleNumberField;
            }
            set
            {
                if (!object.ReferenceEquals(this.VehicleNumberField, value))
                {
                    this.VehicleNumberField = value;
                    this.RaisePropertyChanged("VehicleNumber");
                }
            }
        }

        [DataMember]
        public string VehicleType
        {
            get
            {
                return this.VehicleTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.VehicleTypeField, value))
                {
                    this.VehicleTypeField = value;
                    this.RaisePropertyChanged("VehicleType");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

